package com.dxg.msns;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication(exclude = {
        DataSourceAutoConfiguration.class,
        DataSourceTransactionManagerAutoConfiguration.class,
        HibernateJpaAutoConfiguration.class
})
@EnableDiscoveryClient
public class MSNSGatewayApplication {
    private static final Logger logger = LoggerFactory.getLogger(MSNSGatewayApplication.class);

    public static void main(String[] args) {
        System.out.println("111");
        try {
            System.out.println("222");
             System.out.println("Starting MSNS Gateway Application...");
            SpringApplication.run(MSNSGatewayApplication.class, args);
        } catch (Exception e) {
            System.out.println("Failed to start MSNS Gateway Application"+e);
            System.exit(1);
        }
    }
}